/*
 * MainServiceTemplement.java Created on 2006-12-11
 * Copyright(c) 2006-2008 by vnv
 * ALL Rights Reserved.
 */
package cn.agiledata.bank.webService;

import cn.agiledata.bank.webService.formbean.IVRRequest;
import cn.agiledata.bank.webService.formbean.IVRResponse;

import org.apache.log4j.Logger;


/**
 * TODO to change this type comment
 * @time: 15:28:37
 * @author  ddd
 */
public class MainServiceTemplement extends AbstractMainServiceTemplement {
    private static Logger logger = Logger.getLogger(cn.agiledata.bank.webService.MainService.class);

    /* (non-Javadoc)
     * @see cn.agiledata.bank.webService.AbstractMainServiceTemplement#doMainService(cn.agiledata.bank.webService.IMainServiceCallBack, cn.agiledata.bank.webService.formbean.IVRRequest)
     */
    public IVRResponse doMainService(IMainServiceCallBack callback,
        IVRRequest request) {
        IVRResponse response = new IVRResponse();

        /** check the user whether it is null */
        if (!checkUserPaymentpasswd(request, response)) {
            logger.info(
                "The main service templement ----> not find response or not find login user ");

            return response;
        }

        response = callback.excute();

        // do something about fianlly
        return null;
    }
}
